/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.flf.audioteca.factory.impl;

import br.edu.flf.audioteca.dao.entidades.IAlbumDAO;
import br.edu.flf.audioteca.dao.entidades.IArtistaDAO;
import br.edu.flf.audioteca.dao.entidades.impl.AlbumDAO;
import br.edu.flf.audioteca.dao.entidades.impl.ArtistaDAO;
import br.edu.flf.audioteca.factory.IDAOFactory;

/**
 *
 * @author Nathan Azevedo
 */
public class DAOFactory implements IDAOFactory {

    private static IDAOFactory dAOFactory = null;

    public static IDAOFactory getInstance() {
        if (dAOFactory == null) {
            dAOFactory = new DAOFactory();
        }
        return dAOFactory;
    }

    public IArtistaDAO getArtistaDAO() {
        return ArtistaDAO.getInstance();
    }

    public IAlbumDAO getAlbumDAO() {
        return AlbumDAO.getInstace();
    }
}
